package com.hyacinth.schedule.factory;

import org.quartz.impl.StdSchedulerFactory;

/**
 * 调度任务工厂
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
public class ScheduleJobFactory extends StdSchedulerFactory {
    private ScheduleJobFactory() {}

    private static class ScheduleJobFactoryHolder {
        private static final ScheduleJobFactory INSTANCE = new ScheduleJobFactory();
    }

    /**
     * 获取工厂单实例
     * @return 工厂实例
     */
    public static ScheduleJobFactory getInstance() {
        return ScheduleJobFactoryHolder.INSTANCE;
    }
}
